﻿// ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- 
// XMLocalizator 0.9
// This code is under The MIT Licence (http://xmlocalizator.codeplex.com/license).
// Copyright (c) 2011 Bartosz Lenar (http://bartoszlenar.com/).
//
// For the full list of people involved in this project, visit:
// http://xmlocalizator.codeplex.com/wikipage?title=About
//
// The latest release, documentation, examples and demo applications always available on:
// http://xmlocalizator.codeplex.com/
// ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- 

using XMLocalizator;
using XMLocalizator.Exceptions;
using XMLocalizator.XmlElements;

namespace XMLocalizator.Singleton
{
    /// <summary>
    /// Singleton version of the Localizator class.
    /// To obtain it's instance, look at the public Instance property.
    /// </summary>
    public sealed class LocalizatorSingleton : Localizator
    {
        /// <summary>
        /// Gets the singleton's instance, which lives globally in the application's domain.
        /// </summary>
        public static LocalizatorSingleton Instance
        {
            get { return _instance; }
        }

        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 
        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 
        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 
        // ---------- ---------- !! !! !! !!  PRIVATE PART BELOW !! !! !! !! ---------- ---------- 
        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 
        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 
        // ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 

        static LocalizatorSingleton()
        {
        }

        private static readonly LocalizatorSingleton _instance = new LocalizatorSingleton();
    }
}
